import state from "./state";
import {encrypt, decrypt} from '@/common/js/des.js'
//从 store 中的 state 中派生出一些状态
export default {
	getLogin(state) {
		return state.isLogin;
	},
	getUserName(state) {
		if (state.isLogin) {
			return state.userInfo.userName
		} else {
			return "未登录";
		}
	},
	getUserInfo(state) {
		if (state.isLogin) {
			return state.userInfo
		} else {
			return "未登录";
		}
	},
	getToken(state){
		return state.token;
	},
	
	
}
